* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

.container {
  width: 100%;
  padding: 0;
}

header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  width: 100%;
  padding: 0 300px;
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  color: #111579;
  font-weight: 600;
  margin: 0;
}

nav {
  display: flex;
  margin-right: auto;
  margin-left: 300px;
  gap: 1.5rem;
}

nav a {
  color: #111579;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #111579;
  font-weight: 600;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #111579;
}

.search-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.search-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-box-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(17, 21, 121, 0.15);
}

.main-search-form {
  display: flex;
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(17, 21, 121, 0.15);
}

.search-select-wrapper {
  position: relative;
  border-right: 1px solid #eee;
}

.search-select-wrapper select {
  appearance: none;
  background: transparent;
  padding: 0 2.5rem 0 1.5rem;
  height: 60px;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
}

.search-select-wrapper::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #888;
  pointer-events: none;
}

.main-search-input {
  flex: 1;
  height: 60px;
  padding: 0 1.5rem;
  border: none;
  outline: none;
  font-size: 1.1rem;
}

.main-search-btn {
  width: 60px;
  height: 60px;
  background-color: #111579;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s;
}

.main-search-btn:hover {
  background-color: #0e125e;
}

.search-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  position: relative;
}

.search-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.search-icon::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 13px;
  width: 7px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.main-content {
  max-width: 1200px;
  margin: 3rem auto 0;
  /* padding: 0 1rem; */
}

.data-container,
.search-results {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.data-table th {
  background-color: #ffffff;
  font-weight: 600;
  color: #2c3e50;
}

.data-table tr:hover {
  background-color: #ffffff;
}

.data-table a {
  color: #3498db;
  text-decoration: none;
}

.data-table a:hover {
  text-decoration: underline;
}

.search-message {
  padding: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.error {
  background-color: #fee;
  color: #c00;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  border: 1px solid #fcc;
}

.detail-container {
  display: flex;
  justify-content: space-between;
}

.detail-container h2, .detail-content h2 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
  font-weight: bold;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-label {
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
}

.detail-value {
  color: #2c3e50;
}

.journal-detail-page{
  width: 100% !important;
}

.journal-detail-page .detail-label{
  width: 200px !important;
}

.detail-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.pagination-btn:hover {
  background-color: #f8f9fa;
  border-color: #3498db;
  color: #3498db;
  z-index: 1;
}

.pagination-btn.active {
  background-color: #3498db;
  border-color: #3498db;
  color: white;
  z-index: 2;
}

.pagination-ellipsis {
  color: #666;
  padding: 0 0.5rem;
  user-select: none;
}

.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pagination-info {
  color: #666;
  font-size: 0.9rem;
}

.table-info {
  color: #666;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.search-header {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .search-form {
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .pagination {
    gap: 0.15rem;
  }

  .pagination-btn {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.85rem;
  }
}

.upload-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.upload-container h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #2c3e50;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background: #f8f9fa;
}

.form-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
}

.form-info p {
    margin: 0.5rem 0;
}

.upload-btn {
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.upload-btn:hover {
    background-color: #2980b9;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border: 1px solid #c3e6cb;
}

.back-link {
    margin-top: 2rem;
    text-align: center;
}

.page-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
    gap: 40px;
    width: 1200px;
    display: flex;
    justify-content: space-between;
}

.publisher-sidebar {
    width: 280px;
    flex-shrink: 0;
    padding: 20px;
    background-color: #f5f5ff;
    border-radius: 4px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    max-height: 630px;
    overflow-y: auto;
}

.publisher-sidebar h3 {
    color: #111579;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.publisher-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    /* max-height: 630px; */
    /* overflow-y: auto; */
}

.publisher-list li {
    margin-bottom: 8px;
}

.publisher-link {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 8px 0;
    font-size: 14px;
    transition: color 0.2s;
}

.publisher-link:hover {
    color: #111579;
}

.publisher-link .count {
    color: #666;
    font-size: 12px;
}

.book-list-content {
    flex: 1;
}

.book-list-header {
    margin-bottom: 25px;
}

.book-list-header h1 {
    color: #111579;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
}

.book-list-header p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.search-form {
    background-color: #ecedf9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.search-form input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    margin-bottom: 10px;
}

.search-form button {
    background-color: #111579;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form button:hover {
    background-color: #0d105e;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.book-card {
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
    background-color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
    transform: translateY(-4px);
    /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12); */
}

.book-cover {
    height: 220px;
    width: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    padding: 15px;
}

.book-title {
    color: #111579;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.book-author {
    color: #444;
    font-size: 13px;
    margin-bottom: 5px;
}

.book-publisher {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.pagination-controls a {
    color: #111579;
    text-decoration: none;
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.pagination-controls a:hover {
    background-color: #ecedf9;
}

.pagination-controls a.active {
    background-color: #111579;
    color: white;
    border-color: #111579;
}

.pagination-btn {
    color: #111579;
    text-decoration: none;
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.pagination-btn:hover {
    background-color: #ecedf9;
}

.pagination-btn.active {
    background-color: #111579;
    color: white;
    border-color: #111579;
}

.pagination-ellipsis {
    margin: 0 5px;
}

.no-data {
    padding: 20px;
    text-align: center;
    color: #666;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 联系我们 */
.contact-container {
    background-color: #f0f0f0;
    padding: 2rem 0;
    margin-top: 3rem;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.form-group label {
    width: 80px;
    margin-right: 1rem;
    text-align: right;
    padding-top: 0.5rem;
}

.form-group input,
.form-group textarea {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.required {
    color: #e74c3c;
    margin-left: 0.5rem;
}

.captcha-group {
    display: flex;
    align-items: flex-start;
}

.captcha-image {
    margin-left: 1rem;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.submit-btn {
    padding: 0.8rem 3rem;
    background-color: #777;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-left: 80px;
}

.submit-btn:hover {
    background-color: #555;
}

@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
    }
    
    .form-group label {
        width: 100%;
        text-align: left;
        margin-bottom: 0.5rem;
    }
    
    .submit-btn {
        margin-left: 0;
        width: 100%;
    }
    
    .captcha-group {
        flex-direction: column;
    }
    
    .captcha-image {
        margin: 0.5rem 0;
    }
}

/* New Homepage Styles */

/* Hero Banner Section */
.hero-banner {
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    margin-bottom: 40px;
    width: 100%;
    background-image: url('/images/shouye.jpg');
}



.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    width: 80%;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: #fff !important;
}

/* Sections */
.section-container {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    color: #2c3e50;
    align-self: flex-start;
}

/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* gap: 2rem;
    margin-bottom: 2rem; */
    width: 100%;
    justify-content: center;
}

.book-card {
    /* background-color: #fff; */
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.25rem;
    width: 206px;
}

.book-card:hover {
    transform: translateY(-3px);
}

.book-cover {
    height: 290px;
    overflow: hidden;
    border-radius: 0;
    flex-shrink: 0;
    border: none;
}

.book-cover img, .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.book-info {
    padding: 0.8rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 90px;
    justify-content: space-between;
}

.book-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: #000080;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
    max-height: 2.5rem;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.book-author {
    font-size: 0.85rem;
    color: #000 !important;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: normal;
}

.book-isbn {
    font-size: 0.8rem;
    color: #95a5a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-publisher {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-date {
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contact Section */
.contact-section {
    background-color: #ffffff;
    padding: 3rem 0;
    margin-top: 3rem;
}

.contact-section .section-title {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem 0.75rem;
}

.contact-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-field {
    flex: 1;
    position: relative;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-field input:focus,
.form-field textarea:focus,
.main-search-input:focus {
    outline: none;
    border-color: #111579;
}

.captcha-field {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.captcha-field input {
    width: 120px;
}

.captcha-img {
    height: 42px;
    border-radius: 4px;
}

.form-submit {
    display: flex;
    align-items: flex-end;
}

.submit-button {
    background-color: #111579;
    color: white !important;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px rgba(17, 21, 121, 0.2);
}

.submit-button:hover {
    background-color: #0e125e;
    box-shadow: 0 4px 8px rgba(17, 21, 121, 0.3);
    transform: translateY(-1px);
}

.required {
    color: #e01b1b;
    margin-left: 0.25rem;
    position: absolute;
    top: 0;
    right: -10px;
}

/* Responsive */
@media (max-width: 1200px) {
    .book-grid {
        grid-template-columns: repeat(4, 1fr);
        justify-items: center;
    }
}

@media (max-width: 992px) {
    .book-grid {
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .main-search-form {
        flex-direction: column;
    }
    
    .search-select-wrapper {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .search-select-wrapper select {
        width: 100%;
        text-align: center;
        padding: 0 1rem;
    }
    
    .main-search-btn {
        height: 50px;
    }
    
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        justify-items: center;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .captcha-field {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .captcha-img {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .book-grid {
        grid-template-columns: repeat(1, 1fr);
        justify-items: center;
    }
}

/* Location Styles */
.location {
    display: flex;
    align-items: center;
}

.location span {
    color: #111579;
    font-weight: 500;
    padding-left: 5px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo, .nav, .location {
        margin-bottom: 0.5rem;
    }
}

/* Updated Book and Journal Color Classes */
.book-color-0 {
    background-color: #111579;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-color-1 {
    background-color: #1c2095;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-color-2 {
    background-color: #2a2eb3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-color-3 {
    background-color: #383bd0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-color-4 {
    background-color: #4e51e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-color-0 {
    background-color: #111579;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-color-1 {
    background-color: #131a91;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-color-2 {
    background-color: #161ea9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-color-3 {
    background-color: #1923c3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-color-4 {
    background-color: #1c27dc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-placeholder-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 1rem;
    background-color: #ffffff;
    color: #333;
    font-size: 0.9rem;
}

/* Main Text Color */
.hero-content h1,
.section-title,
.book-title,
.book-author,
.book-isbn,
.form-field label,
.submit-button {
    color: #111579;
}

/* Darker shade for headings */
.hero-content h1,
.section-title {
    color: #111579;
    font-weight: 600;
}

/* Improved Form Styling */
.form-field input, 
.form-field textarea {
    border: 1px solid #ddd;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-field input:focus, 
.form-field textarea:focus {
    box-shadow: 0 0 0 2px rgba(17, 21, 121, 0.15);
}

.submit-button {
    box-shadow: 0 2px 4px rgba(17, 21, 121, 0.2);
}

.submit-button:hover {
    box-shadow: 0 4px 8px rgba(17, 21, 121, 0.3);
    transform: translateY(-1px);
}

.book-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.book-link:hover .book-title {
  text-decoration: underline;
  color: #0000cc;
}

.placeholder-image {
  object-fit: cover;
  padding: 0;
  background-color: #ffffff;
  aspect-ratio: 206/290;
}

/* 图书详情页和期刊详情页样式 */
.breadcrumb {
  background-color: #111579;
  padding: 8px 300px;
  color: white;
  margin-bottom: 30px;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.detail-container {
  display: flex;
  min-width: 1200px;
  width: 1200px;
  margin: 0 auto;
  justify-content: space-between;
}

.publisher-sidebar {
  min-width: 392px;
  padding-right: 30px;
  flex-shrink: 0;
}

.publisher-sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: #111579;
  border-bottom: none;
}

.publisher-list {
  list-style: none;
  padding: 0;
}

.publisher-list li {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  padding: 0;
  border-bottom: none;
}

.count {
  color: #666;
  font-size: 1rem;
  background: none;
  padding: 0;
  border-radius: 0;
}

.book-detail-content {
  width: 788px;
  flex-shrink: 0;
  padding: 20px 20px 20px 30px;
  /* border-left: 1px solid #eee; */
  background-color: #f9f9f9;
}

.detail-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: normal;
  color: #333;
  border-bottom: none;
  padding-bottom: 0;
}

.book-details-wrapper {
  display: flex;
  margin-bottom: 30px;
  background-color: #f9f9f9;
  border-radius: 0;
  padding: 20px;
}

.book-cover-large {
  width: 317px;
  height: 470px;
  overflow: hidden;
  border: 1px solid #ddd;
  margin-right: 30px;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.book-cover-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-info-detail {
  flex-grow: 1;
}

.book-title-large {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #111579;
  font-weight: bold;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.book-detail-items {
  margin-bottom: 20px;
}

.book-detail-item {
  display: flex;
  margin-bottom: 15px;
}

.detail-label {
  width: 150px;
  font-weight: bold;
  color: #333;
  text-align: right;
  padding-right: 20px;
}

.detail-value {
  flex-grow: 1;
  color: #333;
  display: flex;
  align-self: flex-end;
}

.book-description h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: #333;
  border-bottom: none;
}

.description-content {
  line-height: 1.6;
  color: #333;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

.detail-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #111579;
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  font-weight: normal;
  transition: none;
}

.btn:hover {
  background-color: #0d105e;
  transform: none;
  box-shadow: none;
}

@media (max-width: 992px) {
  .detail-container {
    flex-direction: column;
    min-width: auto;
    width: 100%;
  }

  .publisher-sidebar {
    width: 100%;
    min-width: auto;
    padding-right: 0;
    margin-bottom: 30px;
    border-right: none;
  }

  .book-detail-content {
    width: 100%;
    padding-left: 0;
    border-left: none;
  }

  .book-details-wrapper {
    flex-direction: column;
  }

  .book-cover-large {
    width: 220px;
    height: 330px;
    margin: 0 auto 20px;
  }
}


.detail-content{
  width: 788px;
  flex-shrink: 0;
  padding: 20px 20px 20px 30px;
  /* border-left: 1px solid #eee; */
  background-color: #f9f9f9;
}

@media (max-width: 768px) {
  .book-detail-item {
    flex-direction: column;
  }

  .detail-label {
    width: 100%;
    margin-bottom: 5px;
    text-align: left;
    padding-right: 0;
  }



  .detail-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
}

.publisher-link {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: #333;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s ease;
}

.publisher-link:hover {
  color: #111579;
  text-decoration: none;
}

/* .detail-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: normal;
  color: #333;
  border-bottom: none;
  padding-bottom: 0;
} */

/* 详情页banner样式 */
.detail-hero-banner {
  height: 200px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.detail-hero-banner .hero-content {
  padding: 0;
  max-width: 1000px;
  width: 80%;
}

/* 书籍列表布局 - 每行一个项目 */
.books-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.book-list-item {
  display: flex;
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.book-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.book-list-cover {
  width: 100px;
  height: 140px;
  flex-shrink: 0;
  margin-right: 20px;
  background-color: #f0f0f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-list-title {
  font-size: 18px;
  font-weight: 600;
  color: #111579;
  margin-bottom: 10px;
  line-height: 1.3;
}

.book-list-author {
  font-size: 14px;
  color: #444;
  margin-bottom: 5px;
}

.book-list-publisher {
  font-size: 13px;
  color: #666;
}

.book-list-date {
  font-size: 13px;
  color: #777;
  margin-top: 5px;
}

@media (max-width: 576px) {
  .book-list-item {
    flex-direction: column;
  }
  
  .book-list-cover {
    width: 100%;
    height: 180px;
    margin-right: 0;
    margin-bottom: 15px;
  }
}

/* 视图切换按钮样式 */
.view-options {
  margin-bottom: 20px; 
  text-align: right;
}

.view-btn {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #111579;
  transition: all 0.2s ease;
  font-size: 14px;
}

.view-btn:hover {
  background-color: #ecedf9;
}

.view-btn.active {
  background-color: #111579;
  color: white;
  border-color: #111579;
}

/* 添加期刊模块的样式 */
.journals-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.journal-list-item {
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.3s;
}

.journal-list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.journal-issn, 
.journal-frequency {
  font-size: 0.85rem;
  color: #666;
  margin-top: 2px;
  overflow: hidden;
  height: auto;
  max-height: 2.5rem;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* 期刊搜索结果页样式 */
.journals-results-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.journal-result-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.journal-result-title a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.journal-result-title a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.journal-result-issn,
.journal-result-isbn,
.journal-result-frequency {
  font-size: 0.85rem;
  color: #666;
}

/* 期刊详情页样式 */
.journal-detail-container {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.journal-cover {
  width: 317px;
  height: 400px;
  flex-shrink: 0;
  /* flex: 0 0 250px; */
}

.journal-cover img {
  width: 100%;
  /* border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
}

.journal-info {
  flex: 1;
}

.journal-meta {
  margin-bottom: 20px;
}

.journal-meta h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.8rem;
  color: #222;
}

.journal-meta p {
  margin: 8px 0;
  line-height: 1.5;
}

.journal-abstract {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.journal-abstract h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #333;
}

.journal-abstract p {
  line-height: 1.6;
  color: #444;
}

.journal-action-links {
  margin-top: 30px;
}

.back-link {
  display: inline-block;
  padding: 8px 20px;
  background-color: #f5f5f5;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.back-link:hover {
  background-color: #e0e0e0;
}

@media (max-width: 768px) {
  .journal-detail-container {
    flex-direction: column;
  }
  
  .journal-cover {
    flex: 0 0 auto;
    max-width: 200px;
    margin: 0 auto 20px;
  }
}

/* 期刊详情页面新增样式 */
.journal-detail-header {
  margin-bottom: 20px;
  border-bottom: 2px solid #111579;
  padding-bottom: 10px;
}

.journal-detail-title {
  color: #111579;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.journal-abstract-section {
  margin-top: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #111579;
}

.abstract-title {
  color: #111579;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 15px 0;
}

.abstract-content {
  line-height: 1.8;
  color: #333;
}

.abstract-content p {
  margin: 0;
}

/* 总条数显示样式 */
.total-items-count {
  text-align: center;
  margin-bottom: 15px;
  color: #555;
  font-size: 14px;
}

.total-items-count strong {
  color: #111579;
  font-weight: 600;
}
